import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/home/home'
import cart from '@/components/cart/cart.vue'
import newsList from '@/components/goods/newsList.vue'
import newsDetail from '@/components/goods/newsDetail.vue'


Vue.use(Router)

export default new Router({
	linkActiveClass:"mui-active" ,
	routes: [{
			path: '/',
			name: 'index',
			redirect: '/home'
		},
		{
			path: '/home',
			name: 'home',
			component: home
		},{
			path: '/cart',
			name: 'cart',
			component: cart
		},
		
		{
			path: '/news/newsList',
			name: 'goods',
			component: newsList
		},
		{
			path: '/news/newsDetail/:id',
			name: 'newsDetail',
			component: newsDetail
		}
	]
})